package serviceGroup

import "github.com/zeromicro/go-zero/core/service"

func RunServices(s service.Service, services []service.Service) {
	serviceGroup := service.NewServiceGroup()
	defer serviceGroup.Stop()

	serviceGroup.Add(s)
	for _, ss := range services {
		serviceGroup.Add(ss)
	}
	//return serviceGroup
	serviceGroup.Start()
}
